package com.example.eat.model;

public class Recipe {
    private int id;
    private String name;
    private String image;
    private String instructions;
    private String category;
    private int userId;
    private boolean isFavorite; // 临时存储当前用户的收藏状态

    // 构造函数
    public Recipe() {}

    // getter和setter方法
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getImage() { return image; }
    public void setImage(String image) { this.image = image; }
    public String getInstructions() { return instructions; }
    public void setInstructions(String instructions) { this.instructions = instructions; }
    public String getCategory() { return category; }
    public void setCategory(String category) { this.category = category; }
    public int getUserId() { return userId; }
    public void setUserId(int userId) { this.userId = userId; }
    public boolean isFavorite() { return isFavorite; }
    public void setFavorite(boolean favorite) { isFavorite = favorite; }
}